<div id="sidebar">
  <form method="get">
    <div class="box">
      <h3> 搜索文章 </h3>
      <p class="wrap_keyword"> <span class="label"> 文章名称 </span> <br />
        <input id="form_id_keyword" name="keyword" type="text" value="<?=isset($_GET['keyword'])?$_GET['keyword']:''?>" />
        <span class="tips"> </span> </p>
      <p class="wrap_category_id"> <span class="label">文章分类 </span> <br />
        <select id="product_category_id" name="category_id">
          <option value="0">请选择文章所属分类</option>
          <?php
          foreach($categories as $item):
		  ?>
          <option value="<?=$item['id']?>"<?php if(isset($_GET['category_id'])&&$_GET['category_id']==$item['id']):?> selected="selected"<?php endif;?>>
          <?=str_repeat('&nbsp;&nbsp;&nbsp;',$item['level']).$item['name']?>
          </option>
          <?php endforeach;?>
        </select>
      </p>
      <p class="form-buttons">
        <button type="submit" class="btn"><span><?=$this->lang->line('tpl_submit')?></span></button>
      </p>
    </div>
    <div>
      <input type="hidden" name="sfield" id="form_idsfield" value="title" />
      <!-- 
      <input type="hidden" name="stype" id="form_idstype" value="both" />
      <input type="hidden" name="c" id="form_idc" value="articles" />
      <input type="hidden" name="a" id="form_ida" value="" />
       -->
    </div>
  </form>
</div>
